package org.ztest.redis;

import redis.clients.jedis.Jedis;

public class TestRedis
{
    public void test()
    {
        Jedis jedis = new Jedis("192.168.19.134", 6379);
        jedis.hset("KEY1", "ACCOUNT1", "LIHUOLIANG");
        System.out.println(jedis.hget("KEY1", "ACCOUNT1"));
        jedis.hget("KEY1", "HDEL KEY1");
        System.out.println(jedis.hget("KEY1", "ACCOUNT1"));
        jedis.close();
    }
}
